import requests
import json

payload_match = {
    'term': '连衣裙',
    'from': 0,
    'size': 10,
    'order_by': 'read_num',
    'filter_keywords': [],
    'deduplicate': True,
    'filters': {
        # 'biz_code': ['rmrbwx'],
        'publish_timestamp': ['2016-04-09 18:53:25', '2017-05-01 18:53:25'],
        # 'has_copyright': [1]

    }
}

r_match = requests.post('http://localhost:5000/search/v1.1/wechat/article/search_backend', json=payload_match, timeout=200)
a_match = r_match.json()
print("2\n")
print(json.dumps(a_match, indent=4, sort_keys=True, ensure_ascii=False))
